﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Mapview.aspx.cs" Inherits="Mapview" %>

<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxCallbackPanel" tagprefix="dxcp" %>
<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxPanel" tagprefix="dxp" %>
<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxCallback" tagprefix="dxcb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head runat="server">
    <title>Map</title>
    <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.1/js/dojo/dijit/themes/claro/claro.css"/>
    <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1"></script>
    <script type="text/javascript" src="arcgis/js/mapapp.js"></script>
  </head>
  <body class="claro" style="margin:0 10px 0 0; padding:0;">
    <form id="form1" runat="server" style="margin:0; padding:0;">
    <div id="mapDiv" style="width:100%; height:600px; border:1px solid #ddd; margin:0; padding:0;"></div>
    <!--div id="Logo" style="width:100px;height:100px; position:absolute; left:801px;top:501px; background-color:White; z-index:200;"></div-->
    <asp:LinqDataSource ID="ldsRegion" runat="server" 
      ContextTypeName="HF.BizWinner.DB.Linq.BizWinnerDataContext" TableName="Region">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="ldsProvince" runat="server" 
      ContextTypeName="HF.BizWinner.DB.Linq.BizWinnerDataContext" 
      TableName="Province">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="ldsCity" runat="server" 
      ContextTypeName="HF.BizWinner.DB.Linq.BizWinnerDataContext" TableName="City">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="ldsDistrict" runat="server" 
      ContextTypeName="HF.BizWinner.DB.Linq.BizWinnerDataContext" 
      TableName="District">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="ldsStreet" runat="server" 
      ContextTypeName="HF.BizWinner.DB.Linq.BizWinnerDataContext" 
      TableName="Street">
    </asp:LinqDataSource>
    <dxcb:ASPxCallback ID="acbCenter" runat="server" ClientInstanceName="acbCenter" 
      oncallback="acbCenter_Callback">
      <ClientSideEvents CallbackComplete="function(s, e) {
    if(e.result)
	{
	    var rtnObj = eval(&quot;(&quot; + e.result + &quot;)&quot;);
    	var cntPoint = new esri.geometry.Point(rtnObj.CNT_X, rtnObj.CNT_Y, new esri.SpatialReference({ wkid: 4326 }));
	    //alert(target_level + &quot;,&quot; + e.result);
	    if(!onlyShowData)	moveToPoint(cntPoint, target_level);
	}
}" />
    </dxcb:ASPxCallback>
    </form>
  </body>
</html>
